﻿@model IEnumerable<qkview.Models.FullUserInfo>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.UserID)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Name)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Email)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.UserName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.IsBlocked)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.TotalBoards)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.TotalNotes)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.TotalSection)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.AdvSecDescription)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CreateDate)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.IsConfirmed)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Provider)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.UserID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Email)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.UserName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IsBlocked)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TotalBoards)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TotalNotes)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TotalSection)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.AdvSecDescription)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CreateDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IsConfirmed)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Provider)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new {  id=item.UserID  }) |           
            @Html.RouteLink("View", "Board",  new { username = item.UserName })
        </td>
    </tr>
}

</table>
